package mspbots.cw.business.core.opportunities;

import lombok.*;
import mspbots.cw.business.core.BaseTenantEntity;
import org.springframework.data.relational.core.mapping.Table;

import java.time.LocalDateTime;

/**
 * @author Jay.Yang
 */
@Data
@Builder
@EqualsAndHashCode(callSuper = false)
@AllArgsConstructor
@NoArgsConstructor
@Table("connectwise_opportunities")
public class Opportunities extends BaseTenantEntity {

    private Long cwId;
    private String name;
    private String companyName;
    private String contactName;
    private String statusName;
    private String typeName;
    private String stageName;
    private String ratingName;
    private String probabilityName;
    private String notes;
    private String closedByIdentifier;
    private String primarySalesRepName;
    private String secondarySalesRepName;
    private String updatedBy;
    private LocalDateTime closedDate;
    private LocalDateTime dateBecameLead;
    private LocalDateTime expectedCloseDate;
    private LocalDateTime lastUpdated;
    private LocalDateTime syncTime;
    private Long locationId;
    private Long businessUnitId;
    private String campaignName;
}
